package com.example.ginorva.tryeverything.NDK;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import gogrfun.push.R;

public class NDKActivity extends AppCompatActivity {
    static {
        System.loadLibrary("native-lib");
    }
    @BindView(R.id.NDKONE)
    Button NDKONE;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ndk);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.NDKONE)
    public void onViewClicked(View view) {
        switch (view.getId()){
            case R.id.NDKONE:
                NDKONE.setText(tryOne());
                tryTwo();
                break;
        }
    }
    public void LogTwo(){
        Log.d("NDKLOG","HA HA HA!!!!!!!I finish it!!!!!!Again!!!!!!!!!");
    }
    public native String tryOne();
    public native void tryTwo();
}
